<template>
	<view class="box">
		<view class="userbox flex">
			<view class="userinfobox">
				<view class="unamebox flex flex-justify-start">
					<view class="name">Hi-您好</view>
				</view>
				<view>请选择需要咨询的问题</view>
			</view>
			<view class="contributebox flex space-between">
				<button open-type="contact" class="left">
					<text>联系客服</text>
				</button>
			</view>
		</view>

		<!-- 卡片 start -->
		<view class="section">
			<view class="title flex">
				<text>常见问题</text>
			</view><view class="itembox" @click="turnTo(1)">
				<view class="left">
					<text>关于申诉问题</text>
				</view>
				<uni-icons type="arrowright" color="#606060" size="16"></uni-icons>
			</view>
			<view class="itembox" @click="turnTo(2)">
				<view class="left">
					<text>关于共享商品下单流程问题</text>
				</view>
				<uni-icons type="arrowright" color="#606060" size="16"></uni-icons>
			</view>

			<view class="itembox" @click="turnTo(3)">
				<view class="left">
					<text>关于售卖商品下单流程问题</text>
				</view>
				<uni-icons type="arrowright" color="#606060" size="16"></uni-icons>
			</view>
		</view>
	</view>
	<!-- 卡片 end -->

</template>

<script>
	var self;
	import MyLogin from '@/components/my-login.vue'
	export default {
		components: {
			MyLogin
		},
		data() {
			return {};
		},

		onShow() {},
		methods: {
			turnTo(flag) {
				uni.navigateTo({
					url: '/pages/mine/problemsolving?flag=' + flag
				});
			}
		}
	}
</script>

<style lang="scss">
	.userbox {
		display: flex;
		padding: 30rpx 20rpx;
		padding-bottom: 50rpx;
		box-sizing: border-box;
		color: #fff;
		background-color: #6C64D0;

		.navicon {
			background-color: #D6D4FC;
			border: 4rpx solid #fff;
			border-radius: 100%;
			width: 100rpx;
			height: 100rpx;
			overflow: hidden;

			image {
				width: 100%;
				height: 100%;

			}
		}

		.userinfobox {
			display: flex;
			flex: 1;
			flex-direction: column;
			justify-content: space-evenly;
			margin-left: 15px;
			color: #D6D3F9;
			font-size: 28rpx;

			.unamebox {
				display: flex;

				.name {
					font-size: 40rpx;
					color: #fff;
					line-height: 2;
				}

				:nth-child(1) {
					margin-right: 4px;
				}

				:nth-child(2) {
					margin-right: 10px;
				}
			}

		}

		.contributebox {
			padding: 10rpx 30rpx;
			border-radius: 30rpx;
			background: #fff;
			color: #6B59B2;
			font-size: 28rpx;

			>view {
				width: 46rpx;
				height: 46rpx;
				background-color: white;
				border-radius: 50%;
				margin-right: 30rpx;

				image {
					width: 35rpx;
				}
			}

		}
	}

	.section {
		background-color: #fff;
		margin: 0 auto;
		padding: 10rpx 16rpx;
		box-sizing: border-box;

		.title {
			padding-bottom: 20rpx;
			text-align: center;

			text {
				border-bottom: 1px solid #efefef;
				line-height: 3;
			}
		}
	}

	.itembox {
		display: flex;
		justify-content: space-between;
		font-size: 28rpx;
		padding: 30rpx 20rpx;
		border-bottom: 1rpx solid #EFEFEF;
	}

	.left {
		display: flex;
		justify-content: start;
		align-items: center;
		padding: 0;
		background-color: transparent;
		height: auto;
		line-height: normal;
		border: none;
		width: 100%;
		font-size: inherit;

		&:before,
		&:after {
			border: none;
		}

		text {
			color: #262626;
		}
	}
</style>
